package com.zy.mydemo.api.service;

import com.zy.mydemo.common.entity.UserEntity;
import com.zy.mydemo.common.entity.UserParamEntity;
import com.zy.mydemo.common.utils.ResultUtils;

/**
 * @Author:zhongyong
 * @Description：
 * @Date：Create in 2020/04/29
 */

public interface UserService {
    /**
     * 获取用户
     *
     * @param user
     * @return
     */
    UserEntity findUser(UserEntity user);

    /**
     * 获取用户列表
     *
     * @param param
     * @param pageIndex
     * @param pageSize
     * @return
     */
    ResultUtils getList(UserParamEntity param, int pageIndex, int pageSize);

    /**
     * 保存用户
     *
     * @param user
     * @return
     */
    ResultUtils saveUser(UserEntity user);

    /**
     * 添加用户
     *
     * @param user
     * @return
     */
    ResultUtils addUser(UserEntity user);

//    boolean testTransactional();
}
